﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace BartonExtension
{
    public static class CollectionExtensions
    {
        public static bool isNullCollectionOrCount(this ICollection collection)
        {
            if (collection == null)
                return true;
            else
            {
                if (collection.Count == 0)
                    return true;
                else return false;
            }
        }
    }
}
